import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 导入字体图标
import './assets/iconfont.css'
// 导入全局样式表
import './assets/reset.css'
import'./assets/font/font.css'
//全局引入echarts
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts
import axios from 'axios'
// 配置请求的跟路径
axios.defaults.baseURL = 'http://boxue1.top/'
axios.interceptors.request.use(config=>{
  config.headers.Authorization = window.sessionStorage.getItem("token")
  return config
})
Vue.prototype.$http = axios


Vue.use(ElementUI);
Vue.config.productionTip = false



new Vue({
    router,
    render: h => h(App)
  }).$mount('#app')

